/*******************************************************************************
 * Size: 14 px
 * Bpp: 4
 * Opts: --bpp 4 --size 14 --no-compress --font OPlusSans3-Regular.ttf --symbols 请欣赏休息一下无来源 --format lvgl -o app_status_bar_font_music_text.c
 ******************************************************************************/

#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif

#ifndef APP_STATUS_BAR_FONT_MUSIC_TEXT
#define APP_STATUS_BAR_FONT_MUSIC_TEXT 1
#endif

#if APP_STATUS_BAR_FONT_MUSIC_TEXT

/*-----------------
 *    BITMAPS
 *----------------*/

/*Store the image of the glyphs*/
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
    /* U+4E00 "一" */
    0x3, 0x33, 0x33, 0x33, 0x33, 0x33, 0x32, 0x2d,
    0xdd, 0xdd, 0xdd, 0xdd, 0xdd, 0xd8,

    /* U+4E0B "下" */
    0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf3, 0x1,
    0x11, 0x11, 0xe4, 0x11, 0x11, 0x10, 0x0, 0x0,
    0x0, 0xe5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
    0xef, 0x70, 0x0, 0x0, 0x0, 0x0, 0x0, 0xe4,
    0xbb, 0x10, 0x0, 0x0, 0x0, 0x0, 0xe3, 0x8,
    0xd2, 0x0, 0x0, 0x0, 0x0, 0xe3, 0x0, 0x6e,
    0x20, 0x0, 0x0, 0x0, 0xe3, 0x0, 0x3, 0x0,
    0x0, 0x0, 0x0, 0xe3, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0xe3, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0xe3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
    0xe3, 0x0, 0x0, 0x0,

    /* U+4F11 "休" */
    0x0, 0x9, 0x30, 0x0, 0xf0, 0x0, 0x0, 0x0,
    0x1f, 0x0, 0x0, 0xf0, 0x0, 0x0, 0x0, 0x7a,
    0x0, 0x1, 0xf0, 0x0, 0x0, 0x0, 0xe4, 0x7f,
    0xff, 0xff, 0xff, 0xe0, 0x6, 0xf2, 0x0, 0x2b,
    0xfb, 0x10, 0x0, 0xe, 0xf2, 0x0, 0x87, 0xf7,
    0x60, 0x0, 0x9a, 0xd2, 0x0, 0xe1, 0xf2, 0xc0,
    0x0, 0x31, 0xd2, 0x8, 0x90, 0xf0, 0xb5, 0x0,
    0x0, 0xd2, 0x2f, 0x20, 0xf0, 0x3e, 0x10, 0x0,
    0xd3, 0xd8, 0x0, 0xf0, 0x9, 0xb0, 0x0, 0xdb,
    0xc0, 0x0, 0xf0, 0x0, 0xc5, 0x0, 0xd3, 0x10,
    0x0, 0xf0, 0x0, 0x0, 0x0, 0xd2, 0x0, 0x0,
    0xf0, 0x0, 0x0,

    /* U+606F "息" */
    0x0, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x4d, 0x0, 0x0, 0x0, 0x0, 0xbc, 0xce,
    0xec, 0xcc, 0xc1, 0x0, 0xe, 0x21, 0x11, 0x11,
    0x1d, 0x20, 0x0, 0xed, 0xdd, 0xdd, 0xdd, 0xf2,
    0x0, 0xe, 0x10, 0x0, 0x0, 0xd, 0x20, 0x0,
    0xed, 0xdd, 0xdd, 0xdd, 0xf2, 0x0, 0xe, 0x10,
    0x0, 0x0, 0xd, 0x20, 0x0, 0xed, 0xdd, 0xdd,
    0xdd, 0xf2, 0x0, 0x2, 0x13, 0xc, 0x20, 0x2,
    0x0, 0x5, 0xb3, 0xc0, 0x7b, 0x0, 0xa7, 0x0,
    0xb5, 0x3c, 0x0, 0xb2, 0xa2, 0xe1, 0x3d, 0x3,
    0xd0, 0x0, 0xf, 0x8, 0x94, 0x50, 0xd, 0xff,
    0xff, 0x90, 0x15, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0,

    /* U+65E0 "无" */
    0x4, 0xff, 0xff, 0xff, 0xff, 0xff, 0x30, 0x0,
    0x0, 0x0, 0xf1, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0xf1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1,
    0xf0, 0x0, 0x0, 0x0, 0x1f, 0xff, 0xff, 0xff,
    0xff, 0xff, 0xf1, 0x0, 0x0, 0x7, 0xa4, 0x10,
    0x0, 0x0, 0x0, 0x0, 0xc, 0x6c, 0x40, 0x0,
    0x0, 0x0, 0x0, 0x3f, 0x1c, 0x40, 0x0, 0x0,
    0x0, 0x0, 0xc8, 0xc, 0x40, 0x0, 0x40, 0x0,
    0xa, 0xd0, 0xc, 0x40, 0x1, 0xe0, 0x1, 0xbd,
    0x10, 0xc, 0x60, 0x4, 0xc0, 0x1e, 0xc1, 0x0,
    0x7, 0xff, 0xff, 0x60, 0x5, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0,

    /* U+6765 "来" */
    0x0, 0x0, 0x0, 0x98, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x98, 0x0, 0x0, 0x0, 0x8, 0xee,
    0xee, 0xff, 0xee, 0xee, 0x80, 0x0, 0x47, 0x0,
    0x98, 0x0, 0x74, 0x0, 0x0, 0xc, 0x70, 0x98,
    0x5, 0xd1, 0x0, 0x0, 0x1, 0xa0, 0x98, 0xb,
    0x20, 0x0, 0x2d, 0xdd, 0xdd, 0xee, 0xdd, 0xdd,
    0xd2, 0x2, 0x22, 0x2d, 0xcc, 0xd2, 0x22, 0x20,
    0x0, 0x0, 0xa9, 0x98, 0xa9, 0x0, 0x0, 0x0,
    0x1b, 0xb0, 0x98, 0xb, 0xb1, 0x0, 0x5, 0xea,
    0x0, 0x98, 0x0, 0x9e, 0x60, 0x3e, 0x50, 0x0,
    0x98, 0x0, 0x4, 0xd2, 0x0, 0x0, 0x0, 0x98,
    0x0, 0x0, 0x0,

    /* U+6B23 "欣" */
    0x0, 0x0, 0x0, 0x0, 0x10, 0x0, 0x0, 0x0,
    0x0, 0x15, 0x60, 0xb5, 0x0, 0x0, 0x0, 0xbd,
    0xfb, 0x70, 0xe1, 0x0, 0x0, 0x0, 0xe2, 0x0,
    0x3, 0xff, 0xff, 0xf1, 0x0, 0xe0, 0x0, 0xa,
    0x71, 0x12, 0xe0, 0x0, 0xe2, 0x22, 0x2f, 0x1d,
    0x7, 0x90, 0x0, 0xfd, 0xdf, 0xa9, 0xf, 0xd,
    0x30, 0x0, 0xe0, 0x2c, 0x0, 0xf, 0x3, 0x0,
    0x0, 0xe0, 0x2c, 0x0, 0x1f, 0x20, 0x0, 0x1,
    0xd0, 0x2c, 0x0, 0x5f, 0x70, 0x0, 0x3, 0xb0,
    0x2c, 0x0, 0xa8, 0xd0, 0x0, 0x7, 0x80, 0x2c,
    0x2, 0xe0, 0xb7, 0x0, 0xc, 0x30, 0x2c, 0xd,
    0x50, 0x2e, 0x40, 0x4c, 0x0, 0x2c, 0xc8, 0x0,
    0x4, 0xf3, 0x2, 0x0, 0x0, 0x40, 0x0, 0x0,
    0x30,

    /* U+6E90 "源" */
    0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb,
    0xb1, 0xcf, 0xff, 0xff, 0xff, 0xf2, 0x0, 0x7a,
    0xc3, 0x0, 0x3c, 0x0, 0x0, 0x22, 0x0, 0xc3,
    0xce, 0xef, 0xee, 0x10, 0x4e, 0x60, 0xc3, 0xd1,
    0x0, 0xd, 0x10, 0x1, 0xd3, 0xc3, 0xdc, 0xcc,
    0xcf, 0x10, 0x0, 0x0, 0xc2, 0xd2, 0x11, 0x1d,
    0x10, 0x0, 0x40, 0xd2, 0xd3, 0x22, 0x2e, 0x10,
    0x2, 0xd0, 0xf0, 0x9b, 0xbf, 0xbb, 0x0, 0x5,
    0xa1, 0xe0, 0x52, 0xe, 0x25, 0x0, 0x9, 0x66,
    0xa1, 0xd1, 0xe, 0xc, 0x40, 0xe, 0x1c, 0x5b,
    0x50, 0xe, 0x2, 0xd1, 0x2b, 0x3e, 0x16, 0x1f,
    0xe8, 0x0, 0x40, 0x0, 0x1, 0x0, 0x0, 0x0,
    0x0, 0x0,

    /* U+8BF7 "请" */
    0x3, 0x30, 0x0, 0x0, 0xe0, 0x0, 0x0, 0x3,
    0xe0, 0x5a, 0xaa, 0xfa, 0xaa, 0x70, 0x0, 0x98,
    0x13, 0x33, 0xf3, 0x33, 0x20, 0x0, 0x14, 0xc,
    0xcc, 0xfc, 0xcc, 0x50, 0x24, 0x40, 0x23, 0x33,
    0xe3, 0x33, 0x30, 0x59, 0xf1, 0x88, 0x88, 0x88,
    0x88, 0x81, 0x0, 0xd1, 0x9, 0xaa, 0xaa, 0xa9,
    0x0, 0x0, 0xd1, 0xd, 0x32, 0x22, 0x2e, 0x0,
    0x0, 0xd1, 0xd, 0xdd, 0xdd, 0xde, 0x0, 0x0,
    0xd1, 0x1d, 0x10, 0x0, 0xe, 0x0, 0x0, 0xd9,
    0x9d, 0xdc, 0xcc, 0xce, 0x0, 0x0, 0xea, 0xd,
    0x10, 0x0, 0xe, 0x0, 0x0, 0x50, 0xd, 0x10,
    0xb, 0xd9, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0,

    /* U+8D4F "赏" */
    0x0, 0x49, 0x0, 0xe1, 0x0, 0xa2, 0x0, 0x0,
    0xc, 0x50, 0xe1, 0xc, 0xa0, 0x0, 0xb, 0xcd,
    0xec, 0xfc, 0xcf, 0xcc, 0x80, 0xe, 0x32, 0x22,
    0x22, 0x22, 0x27, 0xa0, 0xd, 0x2f, 0xdd, 0xdd,
    0xdd, 0xd5, 0xa0, 0x0, 0x1e, 0x44, 0x44, 0x45,
    0xd0, 0x0, 0x0, 0x7, 0x77, 0x77, 0x77, 0x60,
    0x0, 0x0, 0x9d, 0xdd, 0xdd, 0xdd, 0xd6, 0x0,
    0x0, 0xa5, 0x0, 0x61, 0x0, 0x87, 0x0, 0x0,
    0xa5, 0x3, 0xe0, 0x0, 0x87, 0x0, 0x0, 0x84,
    0x2d, 0xdd, 0x94, 0x66, 0x0, 0x3, 0x6b, 0xe6,
    0x1, 0x6a, 0xe9, 0x30, 0xc, 0x94, 0x0, 0x0,
    0x0, 0x17, 0xb0
};


/*---------------------
 *  GLYPH DESCRIPTION
 *--------------------*/

static const lv_font_fmt_txt_glyph_dsc_t glyph_dsc[] = {
    {.bitmap_index = 0, .adv_w = 0, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0} /* id = 0 reserved */,
    {.bitmap_index = 0, .adv_w = 224, .box_w = 14, .box_h = 2, .ofs_x = 0, .ofs_y = 5},
    {.bitmap_index = 14, .adv_w = 224, .box_w = 14, .box_h = 12, .ofs_x = 0, .ofs_y = -1},
    {.bitmap_index = 98, .adv_w = 224, .box_w = 14, .box_h = 13, .ofs_x = 0, .ofs_y = -1},
    {.bitmap_index = 189, .adv_w = 224, .box_w = 13, .box_h = 15, .ofs_x = 0, .ofs_y = -2},
    {.bitmap_index = 287, .adv_w = 224, .box_w = 14, .box_h = 13, .ofs_x = 0, .ofs_y = -2},
    {.bitmap_index = 378, .adv_w = 224, .box_w = 14, .box_h = 13, .ofs_x = 0, .ofs_y = -1},
    {.bitmap_index = 469, .adv_w = 224, .box_w = 14, .box_h = 15, .ofs_x = 0, .ofs_y = -2},
    {.bitmap_index = 574, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
    {.bitmap_index = 672, .adv_w = 224, .box_w = 14, .box_h = 14, .ofs_x = 0, .ofs_y = -2},
    {.bitmap_index = 770, .adv_w = 224, .box_w = 14, .box_h = 13, .ofs_x = 0, .ofs_y = -1}
};

/*---------------------
 *  CHARACTER MAPPING
 *--------------------*/

static const uint16_t unicode_list_0[] = {
    0x0, 0xb, 0x111, 0x126f, 0x17e0, 0x1965, 0x1d23, 0x2090,
    0x3df7, 0x3f4f
};

/*Collect the unicode lists and glyph_id offsets*/
static const lv_font_fmt_txt_cmap_t cmaps[] =
{
    {
        .range_start = 19968, .range_length = 16208, .glyph_id_start = 1,
        .unicode_list = unicode_list_0, .glyph_id_ofs_list = NULL, .list_length = 10, .type = LV_FONT_FMT_TXT_CMAP_SPARSE_TINY
    }
};



/*--------------------
 *  ALL CUSTOM DATA
 *--------------------*/

#if LVGL_VERSION_MAJOR == 8
/*Store all the custom data of the font*/
static  lv_font_fmt_txt_glyph_cache_t cache;
#endif

#if LVGL_VERSION_MAJOR >= 8
static const lv_font_fmt_txt_dsc_t font_dsc = {
#else
static lv_font_fmt_txt_dsc_t font_dsc = {
#endif
    .glyph_bitmap = glyph_bitmap,
    .glyph_dsc = glyph_dsc,
    .cmaps = cmaps,
    .kern_dsc = NULL,
    .kern_scale = 0,
    .cmap_num = 1,
    .bpp = 4,
    .kern_classes = 0,
    .bitmap_format = 0,
#if LVGL_VERSION_MAJOR == 8
    .cache = &cache
#endif
};



/*-----------------
 *  PUBLIC FONT
 *----------------*/

/*Initialize a public general font descriptor*/
#if LVGL_VERSION_MAJOR >= 8
const lv_font_t app_status_bar_font_music_text = {
#else
lv_font_t app_status_bar_font_music_text = {
#endif
    .get_glyph_dsc = lv_font_get_glyph_dsc_fmt_txt,    /*Function pointer to get glyph's data*/
    .get_glyph_bitmap = lv_font_get_bitmap_fmt_txt,    /*Function pointer to get glyph's bitmap*/
    .line_height = 15,          /*The maximum line height required by the font*/
    .base_line = 2,             /*Baseline measured from the bottom of the line*/
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
    .subpx = LV_FONT_SUBPX_NONE,
#endif
#if LV_VERSION_CHECK(7, 4, 0) || LVGL_VERSION_MAJOR >= 8
    .underline_position = -1,
    .underline_thickness = 1,
#endif
    .dsc = &font_dsc,          /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
#if LV_VERSION_CHECK(8, 2, 0) || LVGL_VERSION_MAJOR >= 9
    .fallback = NULL,
#endif
    .user_data = NULL,
};



#endif /*#if APP_STATUS_BAR_FONT_MUSIC_TEXT*/

